<div class="container-fluid asset-table" ng-repeat="address in wallet.addresses" ng-if="address.keyCheck">
    <div class="row">
        <div class="col-xs-11">
            <div class="col-xs-12 col-sm-6" ng-if="address.pubkey != undefined">
                <img ng-src="{{address.qr}}" ng-show="showqr">{{address.hash}}
                <a href ng-click="showqr = !showqr">
                    <span class="glyphicon glyphicon-qrcode"></span>
                </a> 
                <a href="/about/faq" target="_new">
                    <span class="glyphicon glyphicon-off" tooltip="This is an Armory Offline address. (Click for more info)"></span>
                </a>
            </div>
            <div class="col-xs-12 col-sm-6" ng-if="address.privkey != undefined">
                <img ng-src="{{address.qr}}" ng-show="showqr">{{address.hash}}
                <a href ng-click="showqr = !showqr">
                    <span class="glyphicon glyphicon-qrcode"></span>
                </a>
                <a href="/about/faq" target="_new">
                    <span class="glyphicon glyphicon-lock" tooltip="Your Wallet has the Private key for this address. (Click for more info)"></span>
                </a>
            </div>
            <div class="col-xs-5 col-sm-2 text-right"></div>

            <div class="col-xs-5 col-sm-2 text-right" title="{{wallet.getTotalValue(address)}}" ng-bind-html="wallet.getTotalValue(address) | numeraljs: '$0,0.00':true"></div>
            <div class="col-xs-2">
                <div class="dropdown pull-right">
                      <a data-toggle="dropdown" href="#" class="btn btn-tertiary btn-xs"> {{ 'COMMON.ACTIONS' | translate }} </a>
                        <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu9">
                          <li ng-show="address.privkey != undefined" role="presentation">
                              <a role="menuitem" tabindex="-1" href="#" ng-click="modalManager.getPubkey(address)" > {{ 'COMMON.PUBKEY' | translate}} </a>
                          </li>
                          <li ng-show="address.privkey != undefined" role="presentation">
                              <a role="menuitem" tabindex="-1" href="#" ng-click="modalManager.openSignMessage(address)" > {{ 'COMMON.SIGNMSG' | translate}} </a>
                          </li>
                          <li ng-show="address.pubkey != undefined" role="presentation">
                              <a role="menuitem" tabindex="-1" href="#" ng-click="modalManager.openBroadcastArmoryOfflineTransactionModal(address.hash)" > {{ 'COMMON.BROADCAST' | translate}} </a>
                          </li>
                          <li role="presentation">
                              <a role="menuitem" tabindex="-1" href="#" ng-click="modalManager.openDeleteConfirmModal( address )" >{{'COMMON.REMOVEADDRESS' | translate}} </a>
                          </li>
                        </ul>
                </div>
            </div>
        </div>
        <div class="col-xs-1 collapse-toggle"><div class="checkbox inline btn-collapse"><span></span><input type="checkbox" name="{{asset.symbol}}"  ng-init="address.hideDetails=true" ng-model="address.hideDetails"><span></span></div></div>
    </div>
    <div class="row" collapse="address.hideDetails">
        <div class="col-xs-12">
            <table class="table">
                <thead>
                    <tr>
                        <th class="hide-xs" style="vertical-align:top;"><img src="/assets/img/icons/L.png"></img></th>
                        <th>{{ 'COMMON.ASSET' | translate }}</th>
                        <th class="hide-xs">{{ 'COMMON.BALANCE' | translate }}</th>
                        <th class="hide-xs">{{ 'COMMON.VALUE' | translate }}</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="asset in address.balance" ng-show="((asset.id < 2147483648 && asset.id != 2) || showtesteco === 'true')">
                        <td class="hide-xs"></td>
                        <td>
                            <a href="#">{{wallet.getAsset(asset.id).name | truncate:14}}</a> <span ng-show="asset.id > 0">({{asset.id}})</span>
                        </td>
                        <td ng-if="asset.divisible != undefined && !asset.divisible" class="currency number" title="{{address.getDisplayBalance(asset.id)}}"> 
                            <span ng-bind-html="address.getDisplayBalance(asset.id) | bigjs: '0,0'"></span>
                    <span ng-show="address.getPendingNeg(asset.id)<0" tooltip="This balance reflects the total outbound amount of {{address.getPendingNeg(asset.id)*-1}} {{asset.name ? asset.name : asset.symbol | truncate:14}} in your pending transaction(s)">
                                  <a href="/about/faq" target="_new">
                                      <span class="glyphicon glyphicon-export"></span>
                                  </a>
                              </span>
                    <span ng-show="address.getPendingPos(asset.id)>0" tooltip="To be added to your balance when confirmed">
                  <br><a href="/about/faq" target="_new"><span class="glyphicon glyphicon-import"></span></a> (+<span ng-bind-html="address.getPendingPos(asset.id) | bigjs: '0,0.00000000'"></span> Unconfirmed)</span>
                        </td>
                        <td ng-if="asset.divisible != undefined && asset.divisible" class="currency number" title="{{address.getDisplayBalance(asset.id)}}"> <span ng-bind-html="address.getDisplayBalance(asset.id) | bigjs: '0,0.00000000'"></span>
                    <span ng-show="address.getPendingNeg(asset.id)<0" tooltip="This balance reflects the total outbound amount of {{address.getPendingNeg(asset.id)*-1}} {{asset.name ? asset.name : asset.symbol | truncate:14}} in your pending transaction(s)">
                  <a href="/about/faq" target="_new"><span class="glyphicon glyphicon-export"></span></a></span>
                    <span ng-show="address.getPendingPos(asset.id)>0" tooltip="To be added to your balance when confirmed">
                             <br>
                             <a href="/about/faq" target="_new"><span class="glyphicon glyphicon-import"></span></a> (+<span ng-bind-html="address.getPendingPos(asset.id) | bigjs: '0,0.00000000'"></span> Unconfirmed)</span>
                        </td>
                        <td ng-if="asset.divisible == undefined" class="currency number text-right" title="{{address.getDisplayBalance(asset.id)}}">
                            <span ng-bind-html="address.getDisplayBalance(asset.id) | bigjs: '0,0.00000000'"></span> {{currency.symbol}}
                    <span ng-show="address.getPendingNeg(asset.id)<0" tooltip="This balance reflects the total outbound amount of {{address.getPendingNeg(asset.id)*-1}} {{asset.name ? asset.name : asset.symbol | truncate:14}} in your pending transaction(s)">
                  <a href="/about/faq" target="_new"><span class="glyphicon glyphicon-export"></span></a></span>
                <span ng-show="address.getPendingPos(asset.id)>0" tooltip="To be added to your balance when confirmed">
                  <br><a href="/about/faq" target="_new"><span class="glyphicon glyphicon-import"></span></a> (+<span ng-bind-html="address.getPendingPos(asset.id) | bigjs: '0,0.00000000'"></span> Unconfirmed)</span>
                        </td>
                        <td class="currency number text-right" title="{{address.getDisplayBalance(asset.id) * wallet.getAsset(asset.id).price}}" ng-bind-html="address.getDisplayBalance(asset.id) * wallet.getAsset(asset.id).price | numeraljs: '$0,0.00':true"></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
